layui.config({
    base : "/js/"
}).extend({
    "mframe" : "mframe"
})

layui.use(['form','layer','mframe'],function(){
    var form = layui.form
        layer = parent.layer === undefined ? layui.layer : top.layer,
        mframe = layui.mframe,
        $ = layui.jquery;
    var tree = {};
    
    var prefix = ctx + "activiti";
    
    $(".close").click(function(e){
    	var index = parent.layer.getFrameIndex(window.name);
    	parent.layer.close(index);
    })
    
    
    form.on("submit(add)",function(data){
    	var index = parent.layer.getFrameIndex(window.name);
    	parent.layer.close(index);
        //弹出loading
    })
})